package com.example.constant.shiro;

/**
 * @application:
 * @author: LiYuhang
 * @Date: 2021/7/26 11:52
 * @version: 0.1
 * @Description :
 * @Modified By:
 */
public class CommonProperties {
    /**
     * UNKNOWN_ACCOUNT_EXCEPTION异常
     */
    public static final String UNKNOWN_ACCOUNT_EXCEPTION = "帐号不存在，请核实后输入！";

    /**
     * ACCOUNT_EXCEPTION异常
     */
    public static final String ACCOUNT_EXCEPTION = "帐号或密码不正确！";

    /**
     * INCORRECT_CREDENTIALS_EXCEPTION异常
     */
    public static final String INCORRECT_CREDENTIALS_EXCEPTION = "密码不正确，请重新输入!";

    /**
     * 账户锁定
     */
    public static final String SHIRO_LOCK = "由于密码输入错误次数大于5次，帐号已经被锁定一小时！";

    /**
     * 会话超时
     */
    public static final String SESSION_TIME_OUT = "会话已超时，请重新登录！";

    public final static String LOGIN_COUNT = "login_count_";

    public final static String LOCK_KEY = "_lock";

    public final static String LOCK_VALUE = "LOCKED";

    public final static int PASSWORD_ERROR_TIMES = 5;
}
